package org.xxl.views.base 
{
	import flash.display.DisplayObject;
	import flash.display.Sprite;
	import org.xxl.views.core.ITempleteComponent;
	
	/**
	 * ...
	 * @author XXL
	 */
	public class SpriteTempleteComponent extends Sprite implements ITempleteComponent 
	{
		protected var _skin:DisplayObject;
		
		public function SpriteTempleteComponent() 
		{
			
		}
		
		/* INTERFACE org.xxl.views.core.ITempleteComponent */
		
		public function buildTemplete(skin:DisplayObject):void 
		{
			this._skin = skin;
			TempleteComponent.__ReflectionFun.call(this, skin);
			this.addChild(skin);
			this.cacheAsBitmap = true;
		}
		
		public function get skin():DisplayObject 
		{
			return this._skin;
		}
		
	}

}